{% from 'macros.html' import load_static%}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{% block title %}Message Board{% endblock %}</title>
    {{ load_static('icon', 'favicon.ico') }}
    {{ load_static('css', 'css/style.css') }}
    {{ load_static('css', 'css/bootstrap.min.css') }}
</head>
<body>
<main class="container">
    <header>
        <h1 class="text-center display-4">
            <a href="{{ url_for('index') }}" style="color:rgb(11,71,128)"><strong>Message Board</strong></a>
            <small class="text-muted sub-title">山药鱼儿</small>
        </h1>
    </header>
    {% for msg in get_flashed_messages() %}
        <div class="alert alert-primary alert-dismissible fade show" role="alert">
            {{ msg }}
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="close"></button>
        </div>
    {% endfor %}
    {% block content %}{% endblock %}
    <footer class="text-center">
        {% block fotter %}
            <small> @ 2023 \
                <a href="https://www.jianshu.com/u/5e881fca3ea8" title="小鱼学 Flask">山药鱼儿</a> \
                <a href="https://gitee.com/miali/messageboard" title="Fork me on Gitee">Gitee</a>
            </small>
            <a id="bottom" href="#" title="Go Top">↑</a>
        {% endblock %}
    </footer>
</main>
{{ load_static('js', 'js/jquery-3.7.0.slim.min.js') }}
{{ load_static('js', 'js/bootstrap.bundle.min.js') }}
{{ moment.include_moment(local_js=url_for('static', filename='js/moment-with-locales.min.js')) }}
{{ moment.locale(auto_detect=True) }}
{{ load_static('js', 'js/script.js') }}
</body>
</html>